<?php
/**
 * Text element
 *
 */
class ArrowFormHidden extends ArrowFormField{
	
	public function configure(){
		parent::configure();	
		$this->addProperties(array(
			"length" => false,
			"rexp" => false
		));
	}	
	
	public function validate( $proposedValue ){
		return true;
	}
	
	public function generateOutput(){
		$attribuites = array();
		$attribuites["name"] = $this->getHtmlName();
		$attribuites["value"] = str_replace("\"", "&quot;", $this->getValue());
		
		return '<input type="hidden" '.$this->genTagsFromArray($attribuites).' '.$this->addExternal().'/>';
	}

	public function generate(){
		return $this->generateOutput();
	}

}
?>